﻿@model Entidad.Proveedor

@{
    ViewBag.Title = "Crear Nuevo Proveedor";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Crear</h2>
@*<div id="container" class="row-fluid">
    <!-- BEGIN PAGE -->
    <div id="main-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">
            <div class="widget-body">*@
                <!-- BEGIN PAGE HEADER-->
                <!-- END PAGE HEADER-->
                <!-- ******CONTENT BODY GOES HERE*******  -->
                <div class="span12">
                    <!-- BEGIN BASIC CHART PORTLET-->
                    <div class="widget black">
                        <div class="widget-title">
                            <h4><i class="icon-plus-sign"></i> Nuevo Proveedor</h4>
                            <span class="tools">
                                <a href="javascript:;" class="icon-chevron-down"></a>
                                <a href="javascript:;" class="icon-remove"></a>
                            </span>
                        </div>
                        <div class="widget-body">

                            @using (Html.BeginForm())
                            {
                                @Html.AntiForgeryToken()
                                @Html.ValidationSummary(true)

                                //FORMULARIO

                                <div class="form-group">
                                    @Html.LabelFor(model => model.RazonSocial, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.RazonSocial, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.RazonSocial)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.NombreFantasia, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.NombreFantasia, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.NombreFantasia)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.NumeroCuit, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.NumeroCuit, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.NumeroCuit)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.NumeroIngresosBrutos, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.NumeroIngresosBrutos, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.NumeroIngresosBrutos)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.TipoIva, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.DropDownListFor(m => m.TipoIva.Id, (SelectList)ViewData["ivas"])
                                        @Html.ValidationMessageFor(model => model.TipoIva.Id)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Calle, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Calle, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Calle)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Numeracion, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Numeracion, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Numeracion)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Piso, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Piso, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Piso)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Departamento, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Departamento, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Departamento)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Barrio, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Barrio, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Barrio)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.CodigoPostal, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.CodigoPostal, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.CodigoPostal)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Telefono, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Telefono, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Telefono)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Email, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
                                        @Html.ValidationMessageFor(model => model.Email)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Ciudad, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.DropDownListFor(m => m.Ciudad.Id, (SelectList)ViewData["ciudades"])
                                        @Html.ValidationMessageFor(model => model.Ciudad.Id)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Actividad, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.DropDownListFor(m => m.Actividad.Id, (SelectList)ViewData["actividades"])
                                        @Html.ValidationMessageFor(model => model.Actividad.Id)
                                    </div>
                                </div>

                                <div class="form-group">
                                    @Html.LabelFor(model => model.Estado, new { @class = "control-label col-md-2" })
                                    <div class="col-md-10">
                                        @Html.DropDownListFor(m => m.Estado.Id, (SelectList)ViewData["estados"])
                                        @Html.ValidationMessageFor(model => model.Estado.Id)
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-md-offset-2 col-md-10">
                                        <input type="submit" value="Nuevo Proveedor" class="btn btn-info" />
                                    </div>
                                </div>

                            }
                            <div>
                                @Html.ActionLink("Volver al Listado", "Index")
                            </div>
                        </div>
                    </div>
                    <!-- END BASIC CHART PORTLET-->
                </div>
                <!-- END PAGE CONTENT-->
            @*</div>
        </div>
        <!-- END PAGE CONTAINER-->
    </div>
    <!-- END PAGE -->
</div>*@
<!-- END CONTAINER -->


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
